home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / STRINGS / PACKAGE6 / WRITE.DOC < prev    next >
Text File  |  1990-07-25  |  1KB  |  39 lines

  1. -----------------------------------------------------------------------------
  2.  WriteString
  3. -----------------------------------------------------------------------------
  4.  
  5.  declaration:    procedure WriteString (var OutputFile:
  6.                                               text;
  7.                                             AString:
  8.                                               TypeString);
  9.  
  10.  purpose:         Writes to the outputfile, the contents of AString.Packed
  11.                   array up to length
  12.  
  13.  preconditions:   OutputFile open.  AString is declared and the length is
  14.                   correct
  15.  
  16.  postconditions:  OutputFile receives the values in _PackedArray up to _Length
  17.  
  18.  special cases:   None
  19.  
  20.  example:         var
  21.                     Name:
  22.                       typeString;
  23.                     OutputFile:
  24.                       text;
  25.  
  26.                   begin
  27.                     .
  28.                     .
  29.                     .
  30.                     write(OutputFile,'Name: ');
  31.                     WriteString(OutputFile,Name);
  32.                     writeln(OutputFile)
  33.                     .
  34.                     .
  35.                     .
  36.                   end
  37.  
  38.  -----------------------------------------------------------------------------
  39.